<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
    <div class="container-fluid">
      <a class="navbar-brand">Voting</a>
      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarCollapse">
        <ul class="navbar-nav me-auto mb-2 mb-md-0">
          <li class="nav-item">
            <a class="nav-link active"  href="/">На главной</a>
          </li>
          <li class="nav-item">
            <a class="nav-link "  href="/voting_page">Голосования</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="http://127.0.0.1:8000/profile">Профиль</a>
          </li>
            <li class="nav-item">
            {% if user.is_authenticated %}
            <a class="nav-link" href="{% url 'logout'%}">Выйти</a>
            {% else %}
            <a class="nav-link" href="{% url 'django_registration_register'%}">Зарегистрироваться</a>
                </li>
            <li class="nav-item">
            <a class="nav-link" href="{% url 'login' %}">Войти</a>
            {% endif %}
          </li>aria-current="page"
        </ul>
      </div>
    </div>
  </nav>
</body>
</html>